﻿@model IEnumerable<EagleProject.LinQDataContext.CommonSubscriberReg>

@{
    ViewBag.Title = "_DetailSubscriberForm";
}


<h2>Subscriber Form</h2>
@if (!Model.Any())
{ 
    <h2>No Subscriber Form</h2>
}
else
{
    <table>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.UniqueCode)
            </th>
            <th>Name
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Email)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.MaritalStatus)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DOB)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Gender)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ContactAddress)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LGAOriginID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LGACurrentID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CountryResidentID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CountryCityzenID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CommencementDate)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.IssuedDate)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ExpiryDate)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Cost)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.UniqueCode)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.FirstName)
                    @Html.DisplayFor(modelItem => item.MiddleName)
                    @Html.DisplayFor(modelItem => item.Lastname)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Email)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.MaritalStatus)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DOB)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Gender)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ContactAddress)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.LocalGovArea.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.LocalGovArea1.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Country.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Country1.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.CommencementDate)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.IssuedDate)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ExpiryDate)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Cost)
                </td>
                <td>
                    @Html.ActionLink("Details", "ViewRegisterForm", "Admin", new { id = item.ID }, null)
                </td>
            </tr>
        }

    </table>
}